package com.jiazhong.boot.example.emp.service.impl;

import com.jiazhong.boot.commons.util.JsonResult;
import com.jiazhong.boot.commons.util.ResultTool;
import com.jiazhong.boot.example.emp.mapper.DeptMapper;
import com.jiazhong.boot.example.emp.service.DeptService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    private DeptMapper mapper;

    @Override
    public JsonResult findAll() {
        return ResultTool.success(mapper.finAll());
    }
}
